package com.speakglobe.panelist.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * Represent group of users. 
 */
@Entity
@Table(name="panelist_utility")
public class PanelistUtility implements Serializable {

	private static final long serialVersionUID = 6554904325012186877L;
	
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
	
	@OneToOne
	@JoinColumn(name="panelist_id")
	private Panelist panelist;
	
    private String sex;
    
    @Column(name = "functional_area")
	private String functionalArea;
    
    @Column(name = "company_size")
	private long companySize;
	
    @Column(name = "town_size")
	private long townSize; 
	
	
	@Column(name = "marital_status")
	private String maritalStatus;
	
	@Column(name = "industry_expertise")
	private String industryExpertise;
	
	@Column(name= "smoking_habit")
    private boolean smokingHabit;
	
	@Column(name= "drinking_habit")
	private boolean drinkingHabit;
	
	@Column(name= "illness")
	private boolean illness;
	
	@Column(name= "car_availability")
	private boolean carAvailability;
	private String education;
	
	
	public Panelist getPanelist() {
		return panelist;
	}
	public void setPanelist(Panelist panelist) {
		this.panelist = panelist;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getFunctionalArea() {
		return functionalArea;
	}
	public void setFunctionalArea(String functionalArea) {
		this.functionalArea = functionalArea;
	}
	public long getCompanySize() {
		return companySize;
	}
	public void setCompanySize(long companySize) {
		this.companySize = companySize;
	}
	public long getTownSize() {
		return townSize;
	}
	public void setTownSize(long townSize) {
		this.townSize = townSize;
	}
	public String getMaritalStatus() {
		return maritalStatus;
	}
	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}
	public String getIndustryExpertise() {
		return industryExpertise;
	}
	public void setIndustryExpertise(String industryExpertise) {
		this.industryExpertise = industryExpertise;
	}
	public boolean isSmokingHabit() {
		return smokingHabit;
	}
	public void setSmokingHabit(boolean smokingHabit) {
		this.smokingHabit = smokingHabit;
	}
	public boolean isDrinkingHabit() {
		return drinkingHabit;
	}
	public void setDrinkingHabit(boolean drinkingHabit) {
		this.drinkingHabit = drinkingHabit;
	}
	public boolean isIllness() {
		return illness;
	}
	public void setIllness(boolean illness) {
		this.illness = illness;
	}
	public boolean isCarAvailability() {
		return carAvailability;
	}
	public void setCarAvailability(boolean carAvailability) {
		this.carAvailability = carAvailability;
	}
	public String getEducation() {
		return education;
	}
	public void setEducation(String education) {
		this.education = education;
	}
	
}
